from django.conf.urls.defaults import *


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from ishare import settings
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^ishare/', include('ishare.foo.urls')),

    # Uncomment the next line to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line for to enable the admin:
    (r'^admin/(.*)', admin.site.root),
    (r'^comments/', include('django.contrib.comments.urls')),

    #registration
    (r'^accounts/', include('registration.urls')),
    
	# dev env use only.
    (r'^media_ishare/(?P<path>.*)','django.views.static.serve',{'document_root':settings.MEDIA_ROOT}),
    
    # site url 
    (r'^$','ishare.core.views.index'),
    
    (r'^share/','ishare.core.views.share'),
    
    (r'^item/(?P<id>\d+)/$', 'ishare.core.views.item'),
    
)
